package com.example.yoho.mvp.model;

import com.example.lib_core.network.RetrofitManager;
import com.example.yoho.mvp.contract.ShowContract;
import com.example.yoho.mvp.model.entity.ShowEntity;

import javax.inject.Inject;

import io.reactivex.Observable;

public class ShowModel implements ShowContract.Model {

    @Inject
    public ShowModel() {
    }

    @Override
    public Observable<ShowEntity> showModel(String request) {
        return RetrofitManager.getInstance().getRetrofit().create(AppApi.class).showRequest(request);
    }

    @Override
    public void onDestory() {

    }
}
